<?php

class Header extends MX_Controller
{
    function __construct()
    {
        parent::__construct();
        $this->lang->load('error', $this->public_model->getLanguage());
    }

    function frontback()
    {
        $this->load->model('header_model');
        $data = array();
        $data['logo'] = $this->public_model->getSystemParameterValue('logo');
        $data['citys'] = $this->public_model->getCitys();
        $city_session = $this->session->userdata('city_session');
        if ($city_session == null)
            $this->session->set_userdata('city_session',$data['citys'][0]->id);
        $this->load->view('header_frontback_view', $data);
    }   
}
